﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="ThietBiSo.LinQDB" %>
<%@ Import Namespace="ThietBiSo.Models" %>
<!DOCTYPE html>

<html>
<head runat="server">
    <title>EditDMCon</title>
</head>
<body>
    <%
       
        DanhMucCon dmc = (DanhMucCon)ViewData["danhmuccons"];
    %>
    <script type="text/javascript">
        function submitForm() {
            var F = document.forms[0];

            document.forms[0].submit();
        } 
    </script>
    <% using (Html.BeginForm("EditDMCon", "danhmuc", FormMethod.Post, new { @enctype = "multipart/form-data" }))
       { %>
    <%: Html.ValidationSummary(true) %>
    <table>
       
    </table>
    <fieldset>
        <legend class="classFieldSet">Sửa danh mục con</legend>
           <%:Html.Hidden("cbNhom",ViewData["urlcbNhom"])%>
        <table width="100%">
         <tr>
            <td>
                <input type="button" value="Luu" class="btn" onclick="submitForm();" />
            </td>
            <td>
            <a href="/danhmuc/danhmuccon?id=<%:ViewData["urlcbNhom"] %>">Quay lại</a>
              <%--  <%: Html.ActionLink("Quay lại", "danhmuccon",new {id =ViewData["urlcbNhom"] })%>--%>
            </td>
        </tr>
            <tr>
                <td>
                    Danh mục con
                </td>
                <td >
                    <%:Html.TextBox("TenDMCon", dmc.TenDMCon, new { @style = "width:300px" })%>
                </td>
            </tr>
            <tr>
                <td >
                    Thứ tự
                </td>
                <td class="tableField">
                    <%:Html.TextBox("ThuTu", dmc.ThuTu)%>
                </td>
            </tr>
        </table>
    </fieldset>
    <% } %>
</body>
</html>
